/**
 * 
 */
package com.mvc.service.vo.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mvc.dao.mapper.vo.ElectrocardioDao;
import com.mvc.framework.constant.GlobalConstant;
import com.mvc.model.healthmanager.archive.Electrocardio;
import com.mvc.service.vo.ElectrocardioServiceI;

/**
 * @author qingjie
 *
 */
@Service
public class ElectrocardioServiceImpl implements ElectrocardioServiceI {

	@Autowired
	private ElectrocardioDao eDao;
	
	@Override
	public void insertElectrocardio(Electrocardio ele) {
		switch (GlobalConstant.systemType) {
		case 0:
			eDao.insertElectrocardio(ele);
			break;
		case 1:
			eDao.insertElectrocardio_mb(ele);
			break;
		default:
			break;
		}
	}

}
